home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
batchlrn.arc
/
BATDO-4.HLP
< prev
next >
Wrap
Text File
|
1991-06-17
|
1KB
|
24 lines
REPEATING BATCH FILE FOR YOUR REFERENCE
1) IF %1 = = YOU GOTO YOU
2) IF %1 = = ME GOTO ME
3) GOTO END
4) :YOU
5) CD\YOU [this sub-directory would have to exist]
6) TYPE YOUMENU.DOC [so would this file]
7) GOTO END
8) :ME
9) CD\ME [same as line #5]
10) TYPE MEMENU.DOC [same as line #6]
11) GOTO END
12) :END
From line1 LOGON"sees":YOU.The batch processing file jumps
directly to:YOU,ignoring all the lines in between, and be-
moving through the rest of the file lines. Follow the cmds
after :YOU; DOS changes directories (CD\) as requested to
subdirectory YOU and uses TYPE to display the file on CRT.
The next line says GOTO END. DOS "looks" for the label>>>
:END. This will cause execution to jump over the next few
lines, which pertain to ME,and go to the end of LOGON.BAT.
When ME logs on, a different sequence occurs. The charting
of LOGON on the next page should show you what happens.